/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2024-01-18
 * Time:14:46
 */

//鼠标类实现USB接口
public class Mouse extends Computer implements USB{
    @Override
    public void openDevice() {
        System.out.println("连接鼠标");
    }

    public void click() {
        System.out.println("使用鼠标点击");
    }

    @Override
    public void closeDevice() {
        System.out.println("鼠标已断开连接");
    }
}
